import { IsString, IsEnum, IsOptional, MaxLength } from 'class-validator';
import type { FrequencyRule } from '../../../entities/restaurant.entity';

export class UpdateRestaurantDto {
  @IsOptional()
  @IsString()
  @MaxLength(255)
  name?: string;

  @IsOptional()
  @IsString()
  @MaxLength(100)
  category?: string;

  @IsOptional()
  @IsEnum(['daily', 'weekly', 'monthly'])
  frequency_rule?: FrequencyRule;

  @IsOptional()
  @IsString()
  notes?: string;
}
